﻿package com.teaphy.coroutinecrawler.build_coroutine

import kotlinx.coroutines.*

fun main() = runBlocking {
    println("start")
    val resultDeffer = async(Dispatchers.IO) {
        delay(200L)
        "The result from a async"
    }

    val result = resultDeffer.await()

    println("来自async的返回值：$result")
    println("end")
}